package com.atguigu.scala.test2


/**
 * @author lizikuan
 * @date 2021/5/28 11:47
 */
/*
  1、创建一个demo1的单例，在demo1中创建一个样例类名字为student1，成员变量为name:String, age:Int
  *       创建主方法实例化student，并传参数（“xiaoming”,20）,打印输出student1对象到控制台
 */
object Demo1 {
case class student1(name:String,age:Int)
  def main (args: Array[String]): Unit = {
    val xiaoming = new student1("xiaoming", 20)
    println(xiaoming)
  }
}
